/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package marsaMaroc.model;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;

/**
 *
 * @author salah
 */

@Entity
@Table(name = "FACTURE")
public class Facture implements Serializable{
    @OneToOne(mappedBy = "facture")
    private Reclamation reclamation;
    
    
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "NUMERO")
    private int num_facture ;
    @Column(name = "NAVIRE")
    private int navire ;
    @Column(name = "DATE_ACCOSTAGE")
    @Temporal(javax.persistence.TemporalType.DATE)
    private Date date_accostage ;
    @Column(name = "DATE_APPAREILLAGE")
    @Temporal(javax.persistence.TemporalType.DATE)
    private Date date_appareillage ;
    @Column(name = "DATE_RECEPTION")
    @Temporal(javax.persistence.TemporalType.DATE)
    private Date date_reception ;
    @Column(name = "DATE_EMMISSION")
    @Temporal(javax.persistence.TemporalType.DATE)
    private Date date_emmision ;
    @JoinColumn(name = "ID_CLIENT")
    @ManyToOne
    private Client client; 
    

    public int getNum_facture() {
        return num_facture;
    }

    public void setNum_facture(int num_facture) {
        this.num_facture = num_facture;
    }

    public int getNavire() {
        return navire;
    }

    public void setNavire(int navire) {
        this.navire = navire;
    }

    public Date getDate_accostage() {
        return date_accostage;
    }

    public void setDate_accostage(Date date_accostage) {
        this.date_accostage = date_accostage;
    }

    public Date getDate_appareillage() {
        return date_appareillage;
    }

    public void setDate_appareillage(Date date_appareillage) {
        this.date_appareillage = date_appareillage;
    }

    public Date getDate_reception() {
        return date_reception;
    }

    public void setDate_reception(Date date_reception) {
        this.date_reception = date_reception;
    }

    public Date getDate_emmision() {
        return date_emmision;
    }

    public void setDate_emmision(Date date_emmision) {
        this.date_emmision = date_emmision;
    }

    public Client getClient() {
        return client;
    }

    public void setClient(Client client) {
        this.client = client;
    }

   
    
}
